package com.songcha.sakura.ui.base

import androidx.databinding.ViewDataBinding
import com.songcha.library_base.mvvm.base.BaseRefreshMvvmFragment
import com.songcha.library_base.mvvm.base.BaseRefreshViewModel
import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.sakura.R

abstract class BaseComicRefreshMvvmFragment<VM: BaseRefreshViewModel<out BaseRepository,out Any>,DB: ViewDataBinding>:
    BaseRefreshMvvmFragment<VM, DB>() {
    override fun getLoadErrorLayoutId(): Int {
        return R.layout.sakura_stub_error
    }

    override fun getLoadNoNetworkLayoutId(): Int {
        return R.layout.sakura_stub_no_network
    }

    override fun getLoadTimeoutLayoutId(): Int {
        return R.layout.sakura_stub_timeout
    }

    override fun getLoadNoDataLayoutId(): Int {
        return R.layout.sakura_stub_nodata
    }
}